from manimlib import *

class CylinderToLine(ThreeDScene):
    def construct(self):
        cylinder = Cylinder(radius=1, height=2)
        line = Line(np.array([-1, -1, 0]), np.array([1, 1, 0]))
        self.play(Transform(cylinder, line))
